<!--
 * @Descripttion: 
 * @version: 
 * @Author: Xyl
 * @Date: 2023-04-29 23:46:51
 * @LastEditors: Boyin
 * @LastEditTime: 2024-12-02
-->
<template>
  <div>
    <a-breadcrumb style="color:white">
      <a href="https://192.3.96.11:10443/cgi-bin/situationalAwareness.cgi" style="color: white;">
        <a-breadcrumb-item>首页</a-breadcrumb-item>
      </a>
      <a-breadcrumb-item>系统列表</a-breadcrumb-item>
      <a-breadcrumb-item style="color:aquamarine">网络行为取证</a-breadcrumb-item>
    </a-breadcrumb>
    <block style="marginTop:20px;marginBottom:60px"></block>
    <a-button type="primary" @click="startForensics" style="margin: 10px;">
      开始取证
    </a-button>
    <a-alert message="我们在此展示网络行为取证信息,包含区块ID、开始取证时间、发生的安全事件、网络连接、路由表等信息。"
      description="The network behavior forensic information is displayed here, including block ID, forensic start time, occurring security events, network connections, routing table, and other relevant information."
      type="info" style="marginTop:160px;marginBottom:20px" />
    <BehaviorCom></BehaviorCom>
  </div>
</template>
<script>
  import axios from 'axios';
  import BehaviorCom from "../components/BehaviorCom.vue"
  import block from "../components/block.vue";
  export default {
    inject: ['reload'],
    components: {
      block,
      BehaviorCom
    },
    methods: {
      async startForensics() {
        const resData = await axios({
          method: 'post',
          url: '/apilog/createInfo',
          data: {
            "uuid": "10086",
            "info": {
              "start_time": "1421927414",
              "last_time": "1421927416",
              "attack_category": "Reconnaissance",
              "attack_subcategory": "HTTP",
              "protocol": "tcp",
              "source_IP": "175.45.176.0",
              "source_port": "13284",
              "destination_IP": "149.171.126.16",
              "destination_port": "80",
              "attack_name": "Domino Web Server Database Access: /doladmin.nsf (https://strikecenter.bpointsys.com/bps/strikes/recon/http/domino/access_domino_doladmin_nsf.xml)",
              "attack_reference": "-"
            }
          }
        }).then((res) => {
          console.log("start_forensics_res:", res);
          this.reload();
          // this.uuid = res.data.result.uuid;
          // console.log("this.uuid:", this.uuid);
          //this.flag = 1;
          //this.tableRowClass();
        });
      },
    },
  };
</script>
<style scoped>
  h2 {
    textAlign: center;
    font-size: 2em;
  }
</style>